package com.snow.campuslink.user.converter.dto;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author Gaosl
 * @ClassName UserLoginDto
 * @date 2021/1/21 11:21
 */
@Data
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ApiModel(value="用户登陆")
public class UserLoginDto implements Serializable {

    private static final long serialVersionUID = 1L;

    @NotNull(message = "登录信息不能为空")
    @ApiModelProperty(value = "登录信息")
    private String loginText;

    @NotNull(message = "密码不能为空")
    @Length(min = 6,max = 15,message = "密码长度应在6-15个字符之间")
    @ApiModelProperty(value = "用户密码")
    private String password;


}
